package com.uyayo.blog.service;

import com.uyayo.blog.entity.BlogIndustry;
import com.uyayo.blog.model.BlogIndustryCondition;
import com.uyayo.framework.common.exception.ParentNotFoundException;
import com.uyayo.framework.core.service.IBaseService;

import java.util.List;

public interface BlogIndustryService extends IBaseService<BlogIndustry>{

	List<BlogIndustry> selectBlogIndustry(BlogIndustryCondition blogIndustryCondition);

	/**
	 * 根据上级Id获取记录数
	 * @param parentId 上级id
	 * @return int
	 */
	int selectCountByParentId(Long parentId);

	int saveBlogIndustry(BlogIndustry blogIndustry) throws ParentNotFoundException;

	int updateBlogIndustry(BlogIndustry blogIndustry) throws ParentNotFoundException;

	int deleteBlogIndustry(Long id);
}
